import React, { useEffect } from 'react';
import { useParams } from 'react-router-dom'
import axios from 'axios'
const Detail = () => {
	const { id } = useParams()

	const getDetailInfo = () => {
		axios.post('/api/detail', { id }).then(resp => {
			console.log(resp.data)
		})
	}

	useEffect(() => {
		getDetailInfo()
	}, [])

	return (
		<div>
			详情 --- {id }
		</div>
	);
}

export default Detail;
